package com.chenfan.mcn.model;

import com.baomidou.mybatisplus.annotation.*;
import com.chenfan.mcn.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 商务提成确认表
 * </p>
 *
 * @author lizhejin
 * @since 2021-06-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("business_commission_confirmed")
public class BusinessCommissionConfirmed extends BaseEntity {

    private static final long serialVersionUID = -8916379987254449800L;

    /**
     * 商务提成主键id
     */
    private Long businessId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 用户角色：0商务；1部门负责人
     */
    private Integer role;

    /**
     * 所属部门id
     */
    private Long departmentId;

    /**
     * 所属部门名称
     */
    private String departmentName;

    /**
     * 是否确认提成单：0否1是
     */
    private Integer isConfirmed;

    /**
     * 确认日期
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date confirmedTime;

}
